package at.jku.se.pr.quickshopper.activities;

import at.jku.se.pr.quickshopper.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;

/**
 * class which implements the welcome view which appears by starting the Application
 * by clicking on the view => the LoginActivity starts
 */
public class StartActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);

		RelativeLayout rl = (RelativeLayout) findViewById(R.id.rl);
		rl.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				Intent i = new Intent(StartActivity.this, LoginActivity.class);
				startActivity(i);
			}

		});
	}
}
